package com.hardydou.learn.controller;

import com.hardydou.learn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * UserController
 *
 * @author hardy
 */
@RestController("/user")
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("list")
    public List list() {
        return userService.list();
    }
}
